/**
 * 
 */
package designpattern.example.pos.barpay;

/**
 *
 *@类名称：PayResult.java
 *@类描述：
 *@创建人：zhongy
 *@创建时间：2017年5月16日-下午6:52:36
 *@修改备注:
 *@version 
 */
public class TradeResult {
	private String code;//支付返回码
	
	public static final String CODE_PAY_SUCCESS="PAY_SUCCESS";//支付成功
	public static final String CODE_PAY_FAIL="PAY_FAIL";//支付失败
	public static final String CODE_PAY_PROCESS="PAY_PROCESS";//支付处理中
	
	public static final String CODE_CANCEL_SUCCESS="CANCEL_SUCCESS";//撤销成功
	public static final String CODE_CANCEL_FAIL="CANCEL_FAIL";//撤销失败
	public static final String CODE_CANCEL_PROCESS="CANCEL_PROCESS";//撤销处理中
	
	public static final String CODE_REFUND_SUCCESS="REFUND_SUCCESS";//退款成功
	public static final String CODE_REFUND_FAIL="REFUND_FAIL";//退款失败
	public static final String CODE_REFUND_PROCESS="REFUND_PROCESS";//退款处理中
	
	public static  String[] doubtfulArr=new String[]{CODE_PAY_PROCESS,CODE_CANCEL_PROCESS,CODE_REFUND_PROCESS};//不确定状态数组
	
	private String msg;//支付返回说明
	private Object parmas;//其他参数
	
	
	public TradeResult(){
		super();
	}
	public TradeResult(String code,String msg){
		this.code=code;
		this.msg=msg;
	}
	public TradeResult(String msg){		
		this.msg=msg;
	}

	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	
	public Object getParmas() {
		return parmas;
	}
	public void setParmas(Object parmas) {
		this.parmas = parmas;
	}
	
	
	

}
